home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Text / Abjadi Value 1.2 / Abjadi Value 1.2 Documentation < prev   
Text File  |  1995-02-27  |  3KB  |  67 lines

  1. Abjadi Value Macro 1.2
  2. For Nisus Writer 4.0
  3. —28 February 1995—
  4.  
  5. What it Does
  6.  
  7. The macro distributed with this documentation calculates the “abjadi” value of selected Arabic or Persian text in Nisus Writer.  The result will be displayed as a prompt and put on the system clipboard.  To effectively use this macro, and to read all the text of this documentation, you will need to have the Arabic system resources installed on your computer.
  8.  
  9. Each Arabic letter has traditionally been assigned a numeric value.  For example, the name ÂÔÕÓÂÓÒœ has a total abjadi value of 92.  For purposes of calculating the numeric value, all forms of « (aleph) are considered the same, the Persian Û is considered the same as », ı as Ã,— as ˛,   ¯ as „, and È and Δ as Í.  Diacritical marks and hamzas do not affect the numerical value.
  10.  
  11. Beginning with version 1.2, two versions of this macro are provided, one for Western abjadi values and the second for Eastern values.  Thanks to John Hunwick of Northwestern University for pointing this difference out to me.  Previous versions of this macro calculated only the Easter abjadi values.  The differences are as follows:
  12.  
  13. Letter    Eastern    Western
  14.  
  15. ”    60    300
  16. ‘    300    1000
  17. ⁄    1000    90
  18. ’    90    60
  19.  
  20. How to Use
  21.  
  22. You can copy the  code from the accompanying Nisus Writer Macro file “Abjadi Value” into your default macro file to make both macros available.  Alternately, you can open the macro file itself.
  23.  
  24. Once a macro file containing the Abjadi Value code has been opened, select the Arabic text for which you wish to calculate the numeric value.  Then choose either “Abjadi Value (Eastern)” or “Abjadi Value (Western)” from the Macros submenu of the Tools menu.
  25.  
  26. Version History
  27.  
  28. 1.2  Versions for calculating abjadi values by both Eastern and Western reckoning included.  Also, I had forgotten to include code for the letter Δ.  This is now fixed.  Earlier versions will count this letter (ASCII 198) as zero, instead of ten.
  29.  
  30. 1.1  More than doubled the speed by parsing selected text with the Macro Programming Dialect instead of the Menu Command Dialect.  As a result of this change, the macro can not accurately calculate the abjadi values of blocks of text larger than 2,047 characters (the maximum length of text variables in the Nisus Macro Programming Dialect).  I do not anticipate this will be a problem.
  31.  
  32. Reference
  33.  
  34. See pages 259-260 of A.K.S. Lambton’s Persian Grammar.
  35.  
  36. Abjadi Value macro and documentation copyright 1995 by George Maschke.  All rights reserved.  This macro and accompanying documentation may be freely distributed, but not sold.  Send comments to wtlefercus@aol.com.
  37.  
  38. The list below provides the Eastern numerical values of the letters of the Arabic alphabet.  Differences between Eastern and Western reckoning are pointed out in the table above:
  39.  
  40. «    1
  41. »    2
  42. à   3
  43. œ    4
  44. Á    5
  45. Ë    6
  46. “    7
  47. Õ    8
  48. ◊    9
  49. È    10
  50. „    20
  51. ‰    30
  52.     40
  53. Ê    50
  54. ”    60
  55. Ÿ    70
  56. ·    80
  57. ’    90
  58. ‚    100
  59. —    200
  60. ‘    300
  61.      400
  62. À    500
  63. Œ    600
  64. –    700
  65. ÷    800
  66. ÿ    900
  67. ⁄    1000